import request from '@/utils/request'

// 查询商品店铺列表
export function listTprodshop(query) {
  return request({
    url: '/system/tprodshop/list',
    method: 'get',
    params: query
  })
}

// 查询商品店铺详细
export function getTprodshop(id) {
  return request({
    url: '/system/tprodshop/info/' + id,
    method: 'get'
  })
}

// 新增商品店铺
export function addTprodshop(data) {
  return request({
    url: '/system/tprodshop/add',
    method: 'post',
    data: data
  })
}

// 修改商品店铺
export function updateTprodshop(data) {
  return request({
    url: '/system/tprodshop/update',
    method: 'put',
    data: data
  })
}

// 删除商品店铺
export function delTprodshop(id) {
  return request({
    url: '/system/tprodshop/delete/' + id,
    method: 'delete'
  })
}
